package it.unibz.easytravel.blogging;


import com.google.android.maps.GeoPoint;

public class Placemark {

	public int id;
	public String name;
	public String description;
	public String latitude;
	public String longitude;
	public String altitude;
	public String time;
	public GeoPoint geoPoint;
	public boolean temporal;
	public String pic;
	
	
	public Placemark(int id, String name, String description, String latitude, String longitude, String altitude, String time, String pic) {
		this.id = id;
		this.name = name;
		this.description = description;
		this.latitude = latitude;
		this.longitude = longitude;
		this.altitude = altitude;
		this.time = time;
		
		float x = Float.valueOf(latitude) * TrackMap.CONSTANT;
		float y =  Float.valueOf(longitude) * TrackMap.CONSTANT;
		this.geoPoint = new GeoPoint( (int)x, (int) y);
		
		this.temporal = false;
		this.pic = pic;
	}	
	
	public Placemark(String name, String description, GeoPoint gPoint, boolean temp){
		this.name = name;
		this.description = description;
		this.geoPoint = gPoint;
		this.temporal = temp;
	}
	
}
